* @throws Exception
*/
protected function dumpPages( $cond, $orderRevs ) {
- global $wgMultiContentRevisionSchemaMigrationStage;
- if ( !( $wgMultiContentRevisionSchemaMigrationStage & SCHEMA_COMPAT_WRITE_OLD ) ) {
- // TODO: Make XmlDumpWriter use a RevisionStore! (see T198706 and T174031)
- throw new MWException(
- 'Cannot use WikiExporter with SCHEMA_COMPAT_WRITE_OLD mode disabled!'
- . ' Support for dumping from the new schema is not implemented yet!'
- );
- }
-
$revQuery = MediaWikiServicesAlias::getInstance()->getRevisionStore()->getQueryInfo(
[ 'page' ]
);
if ( ( $wgMultiContentRevisionSchemaMigrationStage & SCHEMA_COMPAT_WRITE_OLD ) ) {
$this->db->update(
'revision',
- [
- 'rev_text_id' => 0,
- 'rev_sha1' => '',
- 'rev_len' => '0',
- ],
+ [ 'rev_text_id' => 0 ],
[ 'rev_id' => $revision->getId() ]
);
}
if ( ( $wgMultiContentRevisionSchemaMigrationStage & SCHEMA_COMPAT_WRITE_NEW ) ) {
$this->db->update(
'content',
- [
- 'content_address' => 'tt:0',
- 'content_sha1' => '',
- 'content_size' => '0',
- ],
+ [ 'content_address' => 'tt:0' ],
[ 'content_id' => $revision->getSlot( SlotRecord::MAIN )->getContentId() ]
);
}
"Talk about BackupDumperTestP1 Text1",
false,
CONTENT_MODEL_WIKITEXT,
- CONTENT_FORMAT_WIKITEXT,
- $schemaVersion
+ CONTENT_FORMAT_WIKITEXT
);
$asserter->assertPageEnd();
$this->revId5_1,
"BackupDumperTestP5 Summary1",
null,
- 0,
- "",
+ 24,
+ "d2vipufvkfs9wfruwjfj8eschxw0fbl",
false,
false,
CONTENT_MODEL_WIKITEXT,
- CONTENT_FORMAT_WIKITEXT,
- $schemaVersion
+ CONTENT_FORMAT_WIKITEXT
);
$asserter->assertPageEnd();
$this->revId5_1,
"BackupDumperTestP5 Summary1",
null,
- 0,
- ""
+ 24,
+ "d2vipufvkfs9wfruwjfj8eschxw0fbl"
);
$asserter->assertPageEnd();